package com.yserp.project.erp.common.anno;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 定义mybatisplus的空值查询
 * author:Carl
 * Date:2022/8/17
 * Time:9:17
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface MybatisNullSearch {
    String value() default "";

    /**
     * 是否开启空查询,默认不开启空查询
     * @return
     */
    boolean open() default false;
}
